package com.istock.sampleService.api;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.istock.base.common.api.model.ApiBaseResponse;
import com.istock.base.common.api.model.PageInfo;
import com.istock.sampleService.model.SenvonInfoShowListRequest;
import com.istock.sampleService.model.SenvonInfoVO;

@RequestMapping("service/senvonInfo")
public interface SenvonInfoApi {

	@RequestMapping(value="/showList", method=RequestMethod.POST)
	public ApiBaseResponse<PageInfo<SenvonInfoVO>> showList(SenvonInfoShowListRequest request);
	
	@RequestMapping(value="/add", method=RequestMethod.POST)
	public ApiBaseResponse<Void> add(@Validated @RequestBody SenvonInfoShowListRequest request);
	
	@RequestMapping(value="/exception", method=RequestMethod.POST)
	public ApiBaseResponse<Void> exception(@RequestBody String name);
}
